import 'package:flutter/material.dart';
import 'package:flutter_juwo/ui/pages/photoHero/showBigImageNet.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import 'PhotoHeroNet.dart';

class PhotoHeroUtil{

  ///网络图片 hero
  static Widget photoHeroNet(BuildContext context,String url,{double width}){
    return PhotoHeroNet(
        photo: url,
        onTap: () {
          Navigator.push(
            context,
            MaterialPageRoute(builder: (context) => ShowBigImagePageNet(url)),
          );
        },
        width: ScreenUtil().setWidth(width));

  }



}
